home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / lang / SGMLS.lha / SGMLS / test / idref.sgm < prev    next >
Text File  |  1994-07-10  |  480b  |  21 lines

  1. <!-- This illustrates single pass idref validation.  Note that the
  2. error message gives the line number of the invalid idref not of the
  3. end of file, even though the error is detected at the end of the file.
  4. -->
  5. <!doctype doc [
  6. <!element doc o o (foo*)>
  7. <!element foo - o empty>
  8. <!attlist foo
  9.   id id #implied
  10.   idref idrefs #implied
  11. >  
  12. ]>
  13. <foo id=x>
  14. <foo idref=y>
  15. <foo idref=x>
  16. <!-- This should get an error: there is no z id -->
  17. <foo idref=z>
  18. <foo id=y>
  19. <foo idref=y>
  20. <foo id=w>
  21.